package com.gilight.base.mapper;

import com.gilight.base.dto.order.OrderStatisticsByDayDTO;
import com.gilight.base.dto.order.OrderStatisticsDTO;
import com.gilight.base.model.order.OrderSkuDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by rize on 2019/7/6.
 */
@Repository
public interface OrderSkuMapper extends IMapper<OrderSkuDO> {

    public List<OrderStatisticsDTO> statistics(@Param("orderIds") List<Long> orderIds);
    public List<OrderStatisticsDTO> statisticsNew(@Param("zzjgId") Long zzjgId,@Param("start") Date start,@Param("end") Date end);
    public List<OrderStatisticsByDayDTO> statisticsByDay(@Param("zzjgId") Long zzjgId, @Param("start") Date start, @Param("end") Date end);

}
